package com.ant.storage.controller;


import com.alibaba.excel.EasyExcel;
import com.ant.storage.common.ResultPage;
import com.ant.storage.common.ResultVo;
import com.ant.storage.dto.InventoryDto;
import com.ant.storage.dto.InventoryExcelDto;
import com.ant.storage.excel.InventoryCensusExecl;
import com.ant.storage.pojo.Inventory;
import com.ant.storage.service.ICarInventoryLogService;
import com.ant.storage.service.ICarInventoryService;
import com.ant.storage.service.IInventoryLogService;
import com.ant.storage.service.IInventoryService;
import com.ant.storage.service.impl.GoodsListener;
import com.ant.storage.vo.InventoryCensusVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author melon
 * @since 2024-01-03
 */
@RestController
@RequestMapping("/car-inventory")
public class CarInventoryController {

    @Autowired
    private ICarInventoryService inventoryService;

    @ApiOperation(value = "获取物品库存数据列表")
    @GetMapping("/getInventoryList")
    public ResultVo getInventoryList(InventoryDto dto) {
        return ResultVo.success("获取成功", inventoryService.querylist(dto));
    }

}
